package com.nuscriptions.exchange.listener;


import org.springframework.boot.context.event.ApplicationStartingEvent;
import org.springframework.context.ApplicationListener;

public class ApplicationStartListener  implements ApplicationListener<ApplicationStartingEvent> {

    @Override
    public void onApplicationEvent(ApplicationStartingEvent event) {

        // 在Spring Boot启动之前执行的初始化操作
        System.out.println("Application is starting, performing initialization tasks...");
    }
}
